package com.yuyou.fn.educational.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * 订单优惠
 *
 */
@TableName(value = "course_order_discount")
public class CourseOrderDiscount implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<CourseOrderDiscount> createExample(){
		return new Example<CourseOrderDiscount>(CourseOrderDiscount.class);
	}

	/**  */
	@TableId(value = "order_discount_id")
	private Long orderDiscountId;

	/**  */
	@TableField(value = "discount_id")
	private Long discountId;

	/**  */
	@TableField(value = "course_order_id")
	private Long courseOrderId;

	/** 优惠来源 0:系统 1:手工 */
	@TableField(value = "from_src")
	private Integer fromSrc;

	/** 优惠名称 */
	@TableField(value = "discount_name")
	private String discountName;

	/** 录入字段 */
	@TableField(value = "input_params")
	private String inputParams;

	/** 附件地址 */
	@TableField(value = "attachment_urls")
	private String attachmentUrls;

	/** 优惠码 */
	@TableField(value = "discount_code")
	private String discountCode;

	/** 优惠金额 */
	@TableField(value = "discount_amount")
	private BigDecimal discountAmount;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	private String extra ;

	@TableField(value = "area_team_id")
	private Long areaTeamId;

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	public Long getOrderDiscountId() {
		return this.orderDiscountId;
	}

	public void setOrderDiscountId(Long orderDiscountId) {
		this.orderDiscountId = orderDiscountId;
	}

	public Long getDiscountId() {
		return this.discountId;
	}

	public void setDiscountId(Long discountId) {
		this.discountId = discountId;
	}

	public Long getCourseOrderId() {
		return this.courseOrderId;
	}

	public void setCourseOrderId(Long courseOrderId) {
		this.courseOrderId = courseOrderId;
	}

	public Integer getFromSrc() {
		return fromSrc;
	}

	public void setFromSrc(Integer fromSrc) {
		this.fromSrc = fromSrc;
	}

	public String getDiscountName() {
		return this.discountName;
	}

	public void setDiscountName(String discountName) {
		this.discountName = discountName;
	}

	public String getInputParams() {
		return this.inputParams;
	}

	public void setInputParams(String inputParams) {
		this.inputParams = inputParams;
	}

	public String getAttachmentUrls() {
		return this.attachmentUrls;
	}

	public void setAttachmentUrls(String attachmentUrls) {
		this.attachmentUrls = attachmentUrls;
	}

	public String getDiscountCode() {
		return this.discountCode;
	}

	public void setDiscountCode(String discountCode) {
		this.discountCode = discountCode;
	}

	public BigDecimal getDiscountAmount() {
		return this.discountAmount;
	}

	public void setDiscountAmount(BigDecimal discountAmount) {
		this.discountAmount = discountAmount;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getAreaTeamId() {
		return areaTeamId;
	}

	public void setAreaTeamId(Long areaTeamId) {
		this.areaTeamId = areaTeamId;
	}
}
